package com.auto.admin.entity.bo;

import com.auto.admin.constants.Constants;
import java.io.Serializable;
import java.util.Map;
import lombok.Data;

/**
 * Description: ApiInfoBO
 * @author liangshf
 * @date 2019-07-16
 */
@Data
public class ApiInfoBO implements Serializable {
	private static final long serialVersionUID = 1L;
	private Long id;
	private String applicationName;
	private Integer port;
	private String controllerName;
	private String methodName;
	/**
	 * controller描述
	 */
	private String controllerRmk;
	/**
	 * 方法描述
	 */
	private String methodRmk;
	private String requestType;
	private String requestUrl;
	private String methodParamType;
	private String argsStr;

	/**
	 * 返回值json
	 */
	private String resultJson;
	
	//private List<String> paramNames;
	
	/**
     * 方法参数 json
     */
	private String paramJson;
	
	/**
     * 自动化参数值json
     */
	private String autoParamJson;
	/**
	 * 返回值Api json
	 */
	private String resultApiJson;
	
	 /**
     * 方法参数Api json
     */
	private String paramApiJson;
	
	//private Map<String, String> attrType;
	
	private Map<String, String> paramMap;

	/**
	 * torna 方法参数Api json
	 */
	private String tornaParamApiJson;

	/**
	 * torna 返回值Api json
	 */
	private String tornaResultApiJson;

	private String smallCode;

	public String getSmallCode() {
		String [] codes = getControllerName().split(Constants.POINT);
		return codes[codes.length -2];
	}
}
